import { defineAmisPlugin, getBaseFormItem, getInputTpl } from '../../base/util';
import component from './fc';
import type { IProps } from './interface';

export default defineAmisPlugin<IProps>(() => {
    return {
        component,
        options: getBaseFormItem({
            type: 'download-excel', order: -6989, name: '下载excel', icon: 'FieldStringOutlined',xtype:'DownloadExcel',
            tpls: [
                {
                    label: 'state',
                    mode: 'horizontal',
                    type: 'input-sub-form',
                    name: 'state',
                    addable: true,
                    // removable: true,
                    // btnLabel: '${label}',
                    minLength: 1,
                    draggable: true,
                    form: {
                      title: '设置keyCode',
                      body: [
                        {
                            type: 'input-text',
                            name: 'keyCode',
                            label: 'keyCode',
                            required: true
                          },
                      ]
                    }
                  },
            ]
        })
    };
});
